package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.sc.nft.enums.ShareTeamStatusEnum;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分享购团队信息
 * </p>
 *
 * @author ligen
 * @since 2023-12-13
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_mall_activity_share_team")
@ApiModel(value = "ScMallActivityShareTeam对象", description = "分享购团队信息")
public class MallActivityShareTeam extends SuperEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分享购活动ID")
    private Long activityShareId;

    @ApiModelProperty(value = "团长用户ID")
    private Long userId;

    @ApiModelProperty(value = "团长用户手机号")
    private String userTel;

    @ApiModelProperty(value = "总订单数量")
    private Integer totalOrderNum;

    @ApiModelProperty(value = "有效订单数量")
    private Integer validOrderNum;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "成团状态:0-拼团中,1-拼团成功,2-拼团失败")
    private ShareTeamStatusEnum status;

    @ApiModelProperty(value = "拼团成功时间")
    private Date successTime;

    @ApiModelProperty(value = "是否已经发放收益")
    private Boolean isIssue;

    /**
     * 有效订单达到最低标准订单数量 或者是分享购活动下架代表可以发放收益 但是最终发放收益的标准是看能否拼团成功
     */
    @ApiModelProperty(value = "是否可以发放收益")
    private Boolean isCanIssue;

}
